<!--  -->
<template>
  <div><box-map></box-map></div>
</template>

<script>
import BoxMap from "../components/BoxMap.vue";

import { useCounterStore } from "../stores/counter.js";
export default {
  data() {
    return {
      layer1: {},
      layer2: {},
    };
  },
  components: { BoxMap },
  creatted() {
    window.addEventListener("popstate", this.handlePopState);
  },
  destroy() {
    window.removeEventListener("popstate", this.handlePopState);
  },
  methods: {
    handlePopState() {
      window.location.reload();
      console.log("刷新页面");
    },
  },
};
</script>

<style lang='scss' scoped>
</style>